#define _CRT_SECURE_NO_WARNINGS
#include<math.h>
#include<stdio.h>
void print(int* pl,int l)
{
	static int a = 0;
	while (a <= l)
	{
		printf("%d ", *pl);
		a++;
		print(pl + 1, l);
	}
}
int main()
{
	int arr[] = { 1,2,3,4,5,6 };
	int l = sizeof(arr) / sizeof arr[0]-1;
	print(arr, l);
	return 0;
}